import React, { memo } from 'react';

import style from './sty.module.css';
import { menu } from '@/constans'
import { Link } from 'react-router-dom';
// import cs from 'classnames'
const Menu = memo(() => {

  return <div className={style.root}  >
    {
      menu.map(item => <Link to={item.url} key={item.title}>
        <div className={`iconfont ${style.icon} ${item.icon}`} style={{ color: item.color }} />
        <div>{item.title}</div>
      </Link>)
    }
  </div>
})
export default Menu